package com.zhan.ielts.tools;

import java.io.File;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class OtherUtils {
	private static Logger log = LoggerFactory.getLogger(OtherUtils.class);

	public static void main(String[] args) {
		log.info("start");
		getFileNames();

	}

	public static void getFileNames(){
		String dir = "D:/usr/local/backup/html-4/";
		File folder = new File(dir);
		String [] filenames = folder.list();
		for(int i=0;i<filenames.length;i++){
//			log.info(i+"-----"+filenames[i]);
		}
		
		File[] files = folder.listFiles();
		for(int i=0;i<files.length;i++){
//			log.info(i+"-----"+files[i].getName()+"--"+files[i].length()/1024+"k");
			if(files[i].length()/1024<20){
//				log.error(i+"-----"+files[i].getName()+"--"+files[i].length()/1024+"k");
				System.err.println(files[i].getName());
			}
		}
		
	}
}
